package site.kexing.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import site.kexing.pojo.Product;
import java.util.List;

@Repository
@Mapper
public interface ProductMapper {
    List<Product> selectAllProducts();
    Product selectProductByID(Integer id);
    int updateProduct(Product product);
    int deleteProduct(Integer id);
    int insertProduct(Product product);
    List<Product> selectProductByName(String product_name);
    List<Integer> selectAllProductID();
}
